package com.situ.onlinebookstore.front.service;

import com.situ.onlinebookstore.common.entity.Addr;

import java.util.List;

public interface AddrService {
    //添加 一个人最多88个地址
    int add(Addr addr) throws Exception;
    //删除
    int remove(Addr addr)throws Exception;
    //x修改
    int edit(Addr addr)throws Exception;
    //根据ID查询
    Addr getById(Integer id);
    //根据用户
    List<Addr> getByUserId(Integer userId);
}
